<extend name="Base/base" />
<block name='head'>
    <meta charset="utf-8">
    <link href="/Public/static/dropload/dropload.css" rel="stylesheet" />
    <!--<link href="/Public/Index/css/page.css" rel="stylesheet" />-->
    <link href="/Public/Index/css/workflow.css" rel="stylesheet" /> 
</block>
<block name="content" > 
    <div class="transferred_table">
        <h2 style="text-align: center;padding:0.7em 0">{$name}</h2>
        <table border="1">
            <notempty name="data">
                <foreach name="data" item="row" key="key">
                    <tr>
                        <td style='text-align:left;'>
                            <a href="#" title="">{$key}</a>
                        </td>
                       
                        <if condition="$type != 3">
                        <td>上午
                        <if condition="$row['min'] neq null and ($row['min'] neq $key)">
                            <a href="{:U('show',array('id'=>$row['id']))}" title="">{$row.min.time}</a>
                            <else/>
                            <a href="{:U('show',array('id'=>$row['id']))}" title=""><font color="red">未打卡</font></a>
                        </if>
                        </td>
                        </if>
                            <if condition="$type != 2">
                        <td>下午
                        <if condition="$row['max'] neq null and ($row['max'] neq $key)">
                            <a href="{:U('show',array('id'=>$row['id']))}" title="">{$row.max.time}</a>
                            <else/>
                            <a href="{:U('show',array('id'=>$row['id']))}" title=""><font color="red">未打卡</font></a>
                        </if>
                        </td>
                        </if>
                 
                    </tr>
                </foreach>
            <else />
                <tr><td colspan="5" style="text-align: left">暂无数据</td></tr>
            </notempty>
        </table>
        <!--<div class="page">{$pages}</div>-->
        <input type="hidden" id="url" value="{:U('dropload')}">
        <input type="hidden" id="delurl" value="{:U('News/delNews')}">
    </div>
    <div class="button">
        <a class="am-btn back" data-url="{:U('index')}">返 回</a>
    </div>
</block>
<block name="script">
    <script type="text/javascript">
        $('.back').on('click', function () {
            location.href = $(this).attr('data-url')
        })

    </script>
</block>
